package com.online.teaching.dao;
import com.online.teaching.pojo.Course;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

/****
 * @Author:admin
 * @Description:Course的Dao
 * @Date 2019/6/14 0:12
 *****/
public interface CourseMapper extends Mapper<Course> {

    /**
     * 删除一门课
     * @param courseId
     * @return
     */
    @Update("UPDATE course SET is_valid = 0 WHERE course_id =#{course_id}")
    Integer deleteCourse(@Param("course_id") Integer courseId);

}
